﻿using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;

namespace MiddleWare.MiddleWare
{
    public class RequestInfoMiddleware
    {
        private readonly RequestDelegate _next;

        public RequestInfoMiddleware(RequestDelegate next)
        {
            _next = next;
        }

        public async Task InvokeAsync(HttpContext context)
        {
            //var cultureQuery = context.Request.Query["info"];
            //if (!string.IsNullOrWhiteSpace(cultureQuery))
            //{

            //}

            // Call the next delegate/middleware in the pipeline.
            await _next(context);
        }
    }
}
